import Debug from "debug"
export default class Logger {
    private _debug
    private _info
    private _warn
    private _error

    constructor(name: string) {
        this._debug = Debug(`${name}:debug`)
        this._info = Debug(`${name}:info`)
        this._warn = Debug(`${name}:warn`)
        this._error = Debug(`${name}:error`)
    }
    get debug() {
        return this._debug
    }
    get info() {
        return this._info
    }
    get warn() {
        return this._warn
    }
    get error() {
        return this._error
    }
}